<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>从手工作坊到智能工厂：DevOps运维演进之路</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        /* Hero Section */
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        /* 首字下沉 */
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            margin-top: 0.5rem;
            font-weight: 700;
            color: #667eea;
        }
        
        /* 代码块美化 */
        pre {
            background: #1e1e1e;
            color: #d4d4d4;
            border-radius: 12px;
            padding: 1.5rem;
            overflow-x: auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            position: relative;
        }
        
        pre::before {
            content: attr(data-language);
            position: absolute;
            top: 0.5rem;
            right: 1rem;
            font-size: 0.75rem;
            color: #888;
            text-transform: uppercase;
        }
        
        /* 卡片悬停效果 */
        .hover-card {
            transition: all 0.3s ease;
        }
        
        .hover-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        /* 渐变文字 */
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* 时间线样式 */
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -1px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, #667eea, #764ba2);
        }
        
        /* 表格美化 */
        .custom-table {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .custom-table th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fadeInUp {
            animation: fadeInUp 0.8s ease-out;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto text-center">
            <h1 class="text-5xl md:text-6xl font-bold mb-6 animate-fadeInUp">
                从手工作坊到智能工厂
            </h1>
            <p class="text-2xl md:text-3xl mb-8 opacity-90 animate-fadeInUp" style="animation-delay: 0.2s">
                DevOps运维演进之路
            </p>
            <div class="flex justify-center space-x-8 text-lg animate-fadeInUp" style="animation-delay: 0.4s">
                <div class="flex items-center">
                    <i class="fas fa-cogs mr-2"></i>
                    <span>自动化运维</span>
                </div>
                <div class="flex items-center">
                    <i class="fas fa-rocket mr-2"></i>
                    <span>持续交付</span>
                </div>
                <div class="flex items-center">
                    <i class="fas fa-brain mr-2"></i>
                    <span>智能监控</span>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="max-w-7xl mx-auto px-6 py-12">
        
        <!-- 第一章：运维演进史 -->
        <section class="mb-16 animate-fadeInUp">
            <div class="bg-white rounded-2xl shadow-xl p-8 hover-card">
                <h2 class="text-3xl font-bold mb-6 gradient-text flex items-center">
                    <i class="fas fa-history mr-3"></i>
                    一、从手工作坊到智能工厂：运维演进史
                </h2>
                
                <p class="text-lg mb-6 drop-cap">
                    想象一家汽车工厂的变迁史，这正是运维发展的缩影。从最初的手工操作到如今的智能化管理，每一步都见证着技术的革新与效率的飞跃。
                </p>
                
                <div class="grid md:grid-cols-3 gap-6 mb-8">
                    <div class="bg-gradient-to-br from-purple-50 to-pink-50 p-6 rounded-xl hover-card">
                        <div class="text-3xl mb-3 text-purple-600">
                            <i class="fas fa-hammer"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-2">手工时代</h3>
                        <p class="text-gray-700">每个工人（运维工程师）手动拧螺丝</p>
                        <code class="text-sm bg-gray-800 text-green-400 px-2 py-1 rounded mt-2 inline-block">vim /etc/config</code>
                    </div>
                    
                    <div class="bg-gradient-to-br from-blue-50 to-cyan-50 p-6 rounded-xl hover-card">
                        <div class="text-3xl mb-3 text-blue-600">
                            <i class="fas fa-industry"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-2">流水线时代</h3>
                        <p class="text-gray-700">传送带（Shell脚本）实现基础自动化</p>
                        <code class="text-sm bg-gray-800 text-green-400 px-2 py-1 rounded mt-2 inline-block">#!/bin/bash</code>
                    </div>
                    
                    <div class="bg-gradient-to-br from-green-50 to-emerald-50 p-6 rounded-xl hover-card">
                        <div class="text-3xl mb-3 text-green-600">
                            <i class="fas fa-robot"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-2">智能工厂</h3>
                        <p class="text-gray-700">机器人（Ansible） + 物联网（监控） + 中控（K8s）</p>
                        <code class="text-sm bg-gray-800 text-green-400 px-2 py-1 rounded mt-2 inline-block">kubectl apply</code>
                    </div>
                </div>
                
                <!-- Mermaid 图表 -->
                <div class="bg-gray-50 p-6 rounded-xl">
                    <div class="mermaid">
                        graph LR
                            A[手工运维] -->|脚本化| B[自动化运维]
                            B -->|容器化| C[DevOps]
                            C -->|智能化| D[AIOps]
                            
                            style A fill:#f9f,stroke:#333,stroke-width:2px
                            style B fill:#bbf,stroke:#333,stroke-width:2px
                            style C fill:#bfb,stroke:#333,stroke-width:2px
                            style D fill:#fbf,stroke:#333,stroke-width:2px
                    </div>
                </div>
            </div>
        </section>

        <!-- 第二章：DevOps工具链 -->
        <section class="mb-16 animate-fadeInUp">
            <div class="bg-white rounded-2xl shadow-xl p-8 hover-card">
                <h2 class="text-3xl font-bold mb-6 gradient-text flex items-center">
                    <i class="fas fa-tools mr-3"></i>
                    二、DevOps工具链全景图
                </h2>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <!-- IaC 部分 -->
                    <div>
                        <h3 class="text-2xl font-bold mb-4 flex items-center">
                            <i class="fas fa-code text-purple-600 mr-2"></i>
                            基础设施即代码（IaC）
                        </h3>
                        
                        <div class="mb-6">
                            <h4 class="text-lg font-semibold mb-2 text-purple-700">
                                <i class="fab fa-ansible mr-2"></i>Ansible - 万能遥控器
                            </h4>
                            <pre data-language="yaml"><code># 部署Java环境的Playbook
- name: 配置Java服务器
  hosts: webservers
  tasks:
    - name: 安装JDK17
      ansible.builtin.yum:
        name: java-17-openjdk
        state: present
    
    - name: 设置环境变量
      ansible.builtin.lineinfile:
        path: /etc/environment
        line: 'JAVA_HOME=/usr/lib/jvm/java-17-openjdk'</code></pre>
                        </div>
                        
                        <div>
                            <h4 class="text-lg font-semibold mb-2 text-blue-700">
                                <i class="fas fa-cube mr-2"></i>Terraform - 云端乐高
                            </h4>
                            <pre data-language="hcl"><code># 创建AWS EC2实例
resource "aws_instance" "app_server" {
  ami           = "ami-0c55b159cbfafe1f0"
  instance_type = "t3.medium"
  
  tags = {
    Name = "JavaApp-Prod"
  }
}</code></pre>
                        </div>
                    </div>
                    
                    <!-- CI/CD 部分 -->
                    <div>
                        <h3 class="text-2xl font-bold mb-4 flex items-center">
                            <i class="fas fa-sync-alt text-green-600 mr-2"></i>
                            CI/CD流水线
                        </h3>
                        
                        <div class="bg-gradient-to-r from-green-50 to-emerald-50 p-4 rounded-lg mb-4">
                            <p class="text-lg font-semibold mb-2">Jenkins Pipeline 示例</p>
                            <p class="text-gray-700">自动化构建、测试、部署全流程</p>
                        </div>
                        
                        <pre data-language="groovy"><code>pipeline {
    agent any
    stages {
        stage('构建') {
            steps {
                sh 'mvn clean package -DskipTests'
            }
        }
        stage('测试') {
            steps {
                parallel(
                    "单元测试": { sh 'mvn test' },
                    "集成测试": { sh 'mvn verify -Pintegration' }
                )
            }
        }
        stage('部署') {
            steps {
                ansiblePlaybook(
                    playbook: 'deploy.yml',
                    inventory: 'production.inv'
                )
            }
        }
    }
}</code></pre>
                    </div>
                </div>
            </div>
        </section>

        <!-- 第三章：容器化革命 -->
        <section class="mb-16 animate-fadeInUp">
            <div class="bg-white rounded-2xl shadow-xl p-8 hover-card">
                <h2 class="text-3xl font-bold mb-6 gradient-text flex items-center">
                    <i class="fab fa-docker mr-3"></i>
                    三、容器化革命：Docker与Kubernetes
                </h2>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h3 class="text-xl font-bold mb-4 flex items-center">
                            <i class="fab fa-docker text-blue-600 mr-2"></i>
                            Docker化Java应用
                        </h3>
                        <pre data-language="dockerfile"><code>FROM eclipse-temurin:17-jdk
WORKDIR /app
COPY target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","app.jar"]</code></pre>
                    </div>
                    
                    <div>
                        <h3 class="text-xl font-bold mb-4 flex items-center">
                            <i class="fas fa-dharmachakra text-blue-700 mr-2"></i>
                            Kubernetes编排实战
                        </h3>
                        <pre data-language="yaml"><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: java-app
spec:
  replicas: 3
  selector:
    matchLabels:
      app: java-backend
  template:
    metadata:
      labels:
        app: java-backend
    spec:
      containers:
      - name: app
        image: registry